package com.ezops.poc.validations.validators.converter;

public class EzopsNumberConverter implements ITypeConverter {

	@Override
	public void tryConvert(String value, String format)
			throws ConversionException, UnknownFormatException {
		// format doesn't apply for whole number
		try {
			Integer.valueOf(value);
		} catch (NumberFormatException e) {
			throw new ConversionException("Number", value, e.getMessage());
		}
	}

}
